package com.atguigu.service;

import com.atguigu.entity.UserFollow;
import com.atguigu.vo.UserFollowVo;
import com.github.pagehelper.PageInfo;

/**
 * @author hljstart
 * @create 2022-06-12-16:59
 */
public interface UserFollowService extends BaseService<UserFollow> {


    //查询是否关注了该房源
    Boolean isFollowed(Long id,Long id1);

    //关注房源
    void follow(Long id, Long houseId);

    //分页查询我关注的房源
    PageInfo<UserFollowVo> findPageList(Integer pageNum, Integer pageSize, Long id);

    //取消关注房源
    void cancelFollowed(Long id);
}
